const {baseService2} =require('../../baseService2')
const {stage_model} =require('../../../dao/model/model')


/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class stageServiceError extends Error {
    constructor(error,message='stageServiceError'){
        super()
        this.error = error
        this.message=message
        
    }
}


class stageService  extends baseService2{

    static ins = new stageService()

    constructor(){

        super(stage_model,stageServiceError)
        
    }


    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new stageService()
        }
    }


}







module.exports={stageService}
